package com.example.trie35;

import lombok.Getter;
import lombok.Setter;

/**
 * @description 只适用于英文构建 Trie 树
 * @auther lijiewei
 * @date 2022/1/14 16:07
 */
@Getter
@Setter
public class TrieNode {

    /** 存放的字符数据. */
    private char data;
    /** 子集. */
    public TrieNode[] children = new TrieNode[26];
    /** 是否是结束字符. */
    public boolean isEndingChar = false;
    public TrieNode (char data) {
        this.data = data;
    }
}
